package struts2.hanh;

import java.util.ArrayList;

import DAO.Dao_Programme;
import Entity.Programme;

import com.opensymphony.xwork2.ActionSupport;


public class AmendAction extends ActionSupport{
	private String name;
	private String des;
	private boolean active;
	private ArrayList<Programme> listPro;

	public String execute() throws Exception {
		Dao_Programme dao = new Dao_Programme();
		Programme pro=dao.getProgramme(name);
		des=pro.getDes();
		active = pro.isActive();
		
		return "success";

	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getDes() {
		return des;
	}

	public void setDes(String des) {
		this.des = des;
	}

	public boolean isActive() {
		return active;
	}

	public void setActive(boolean active) {
		this.active = active;
	}

	public ArrayList<Programme> getListPro() {
		return listPro;
	}

	public void setListPro(ArrayList<Programme> listPro) {
		this.listPro = listPro;
	}

}
